using Microsoft.AspNetCore.Http;

namespace CodeIsBug.Models.Admin;

[Table(Name="E_Sys_LogVis")]
public class SysLogVis:BaseModel
{
    /// <summary>
    /// userID
    /// </summary>
    [Column(Name = "userId",IsNullable = false)]
    public string? Name { get; set; }
    /// <summary>
    /// 登录名
    /// </summary>
    [Column(Name = "Account",IsNullable = false)]
    public string? Account { get; set; }
    /// <summary>
    /// 是否成功
    /// </summary>
    [Column(Name = "Success",IsNullable = false)]
    public bool Success { get; set; }
    /// <summary>
    /// IP地址
    /// </summary>
    [Column(Name = "Ip",IsNullable = false)]
    public string Ip { get; set; }
    /// <summary>
    /// 位置
    /// </summary>
    [Column(Name = "Location",IsNullable = false)]
    public string Location { get; set; }
    /// <summary>
    /// 浏览器信息
    /// </summary>
    [Column(Name = "Browser",IsNullable = false)]
    public string Browser { get; set; }
    /// <summary>
    /// 系统
    /// </summary>
    [Column(Name = "OS",IsNullable = false)]
    public string OS { get; set; }
    /// <summary>
    /// 请求url
    /// </summary>
    [Column(Name = "Url",IsNullable = false)]
    public PathString Url { get; set; }
    /// <summary>
    /// 请求类名
    /// </summary>
    [Column(Name = "ClassName",IsNullable = false)]
    public string? ClassName { get; set; }
    /// <summary>
    /// 方法名称
    /// </summary>
    [Column(Name = "MethodName",IsNullable = false)]
    public string MethodName { get; set; }
    /// <summary>
    /// 请求方法
    /// </summary>
    [Column(Name = "ReqMethod",IsNullable = false)]
    public string ReqMethod { get; set; }
    /// <summary>
    /// 请求参数
    /// </summary>
    [Column(Name = "Param",IsNullable = false)]
    public string Param { get; set; }
    /// <summary>
    /// 耗时
    /// </summary>
    [Column(Name = "ElapsedTime",IsNullable = false)]
    public long ElapsedTime { get; set; }
    /// <summary>
    /// 请求时间
    /// </summary>
    [Column(Name = "OpTime",IsNullable = false)]
    public DateTime OpTime { get; set; }
    /// <summary>
    /// 请求结果
    /// </summary>
    [Column(Name = "Result",IsNullable = false)]
    public string? Result { get; set; }
}